Skip to content

Conversation

antznette1
Copy link

@antznette1 antznette1 commented Oct 12, 2025

Reference Closes #62651.
Usage example:

df.to_excel("out.xlsx", engine="xlsxwriter",
            engine_kwargs={"autofilter_header": True, "header_bold": True})

Notes on behavior, MultiIndex headers considered as first header row for bolding, and not changing defaults.
I can add a docs follow-up and then commit to the same PR to_excel with a short example showing engine_kwargs={"autofilter_header": True, "header_bold": True}

Copy link
Member

@rhshadrach rhshadrach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm negative on using engine_kwargs here, I added thoughts to the linked issue.

@rhshadrach rhshadrach added Enhancement IO Excel read_excel, to_excel labels Oct 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement IO Excel read_excel, to_excel

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ENH: : Add header Autofilter and optional bold via engine_kwargs in to_excel

2 participants